package com.winning.yanghao.designpattern.singleton.hungry;

/**
 * 饿汉模式：类启动的时候就要初始化
 */
public class Hungry {

    private Hungry(){}

    private static Hungry hungry = new Hungry();

    public static Hungry getInstance(){
        return hungry;
    }

}
